from building import *

cwd = GetCurrentDir()
list = os.listdir(cwd)
objs = []
src = []

if GetDepend(['BSP_USING_UART']):
    src += ['drv_uart.c']

if GetDepend(['BSP_USING_WDG']):
    src += ['drv_wdg.c']

if GetDepend(['BSP_USING_I2C']):
    src += ['drv_i2c.c']
    
if GetDepend(['BSP_USING_ADC']):
    src += ['drv_adc.c']

CPPPATH = [cwd]

group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)

Return('objs')
